<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
	<meta charset="utf-8" />
	<title>基于bootstrap的管理后台 </title>
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	<!-- ================== BEGIN BASE CSS STYLE ================== -->
	<link href="__STATIC__/assets_index/plugins/jquery-ui-1.10.4/jquery-ui.css" rel="stylesheet" />
	<link href="__STATIC__/assets_index/plugins/bootstrap-3.1.1/css/bootstrap.css" rel="stylesheet" />
	<link href="__STATIC__/assets_index/plugins/font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" />
	<link href="__STATIC__/assets_index/css/animate.css" rel="stylesheet" />
	<link href="__STATIC__/assets_index/css/style.css" rel="stylesheet" />
	<link href="__STATIC__/assets_index/css/style-responsive.css" rel="stylesheet" />
	<!-- ================== END BASE CSS STYLE ================== -->
</head>
<body>
	<div id="page-loader" class="fade in"><span class="spinner"></span></div>
	<div id="page-container" class="fade">
        <div class="login bg-black animated fadeInDown">
            <div class="login-header">
                <div class="brand">
                    <span class="logo"></span> 管理后台
                </div>
                <div class="icon">
                    <i class="fa fa-sign-in"></i>
                </div>
            </div>
            <div class="login-content">
                <!-- <form action="index.html" method="post" class="margin-bottom-0"> -->
                    <div class="form-group m-b-20">
                        <input type="text" id="name" class="form-control input-lg"/>
                    </div>
                    <div class="form-group m-b-20">
                        <input type="pwd" id="pwd" class="form-control input-lg"/>
                    </div>
                    <div class="login-buttons">
                        <button type="submit" class="btn btn-success btn-block btn-lg" id="login">登录</button>
                    </div>
                <!-- </form> -->
            </div>
        </div>
        <!-- end login -->
	</div>
	<!-- end page container -->
	<!-- ================== BEGIN BASE JS ================== -->
	<script src="__STATIC__/assets_index/plugins/jquery-1.7.2/jquery-1.7.2.js"></script>
	<script src="__STATIC__/assets_index/plugins/jquery-ui-1.10.4/ui/minified/jquery-ui.min.js"></script>
	<script src="__STATIC__/assets_index/plugins/bootstrap-3.1.1/js/bootstrap.min.js"></script>
	<script src="__STATIC__/assets_index/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<!-- ================== END BASE JS ================== -->
	<!-- ================== BEGIN PAGE LEVEL JS ================== -->
	<script src="__STATIC__/assets_index/js/apps.js"></script>
	<!-- ================== END PAGE LEVEL JS ================== -->
	<script>
		$(document).ready(function() {
			App.init();
		});

	</script>
</body>
</html>
<script>
    $(document).on('click',"#login",function(){
        var name = $("#name").val();
        var pwd = $('#pwd').val();
        $.ajax({
            type:'get',
            url:"{:url('index/doLogin')}",
            dataType:"json",
            data:{name:name,pwd:pwd},
            success:function(res)
            {
                alert(res.msg);
                if(res.code==0)
                {
                    location.href = "{:url('index/showPower')}";
                }
            }
        })
    })
</script>

